<!DOCTYPE html>
<html>
<head>
	<title>管理 —— 充值，销售记录</title>
	<link rel="stylesheet" href="/static/css/base.css" type="text/css" />
	<link rel="stylesheet" href="/static/css/caipiao_3.css" type="text/css" />
	<link rel="stylesheet" href="/static/css/icon.css" type="text/css" />
	<link rel="stylesheet" href="/static/css/hjh.css" type="text/css" />
	<link rel="stylesheet" href="/static/css/caipiao.css" type="text/css" />
    <link rel="stylesheet" href="/static/css/caipiao_1.css" type="text/css" />
    <link rel="stylesheet" href="/static/css/easydialog.css" type="text/css" />
	<script src="/static/js/easydialog.js" type="text/javascript"></script>
  	<script src="/static/js/jquery.min.js" type="text/javascript"></script>
  	<script src="/static/js/pyqtmock.js" type="text/javascript"></script>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
</head>

<body oncontextmenu="return false">
    <div id="guanli_denglu">
        <span class="guanli_denglu_logo"></span>
        <span class="guanli_title12"></span>
        <div class="back_img right inline" onclick="window.location.href='/guanli'"></div>
    </div>
    
    <div style="margin-top:-28px;">
      <span style="padding-left:123px; color:#fff;"><a href="#" class="white-notice">销售总额：{{saletotal}}, 当月销售额:{{sale_cur_month}}￥, 
      上月销售额:{{sale_last_month}}￥, 账户余额：{{balance}}, 销售总提成：{{saleawards}}</a></span>
    </div>
    
    <div class="gg_left_info">
        <div class="ss-chose" style="height: 450px;">
  		    <table  class="tab_sale_info">
  			    <tr><!--  <th  scope="col">id</th>-->
  				    <th  scope="col">彩票种类</th>
  					<th  scope="col">彩票期次</th>
  					<th  scope="col">购买时间</th>
  					<th  scope="col">付款金额</th>
  					<th  scope="col">付款方式</th>
  					<th  scope="col">交易状态</th>
				</tr>
				{% for trade in trades %}
                <tr> 
                    <!--<td >{{trade.tradeid}}</td>-->
                    <td>{{trade.ticktype}}</td>
                    <td>{{trade.period}}</td>
                    <td>{{trade.tradtime}}</td>
                    <td>{{trade.tradamount}}</td>
                    <td>{{trade.tradeMethod}}</td>
                    <td>{{trade.status}}</td>
                    
                </tr>
                {% endfor %}
			</table>
        </div>
    </div>
    
    <div id="bottom_page">
        <a href="#" id="start" onclick="start();">首页</a></p1> 
        <a href="#" id="up" onclick="up();">上一页</a></p1>
        <a href="#" >第<input type="hidden" id="current" value="{{currentpage}}"/>{{currentpage}}页</a></p1>
        <a href="#" id="next" onclick="next();">下一页</a></p2>
        <a href="#" id="end" onclick="end();">尾页</a></p2>
        <a href="#" >共<input id="allpage" type="hidden" value="{{allpage}}"/> {{allpage}}页</a></p1>
    </div>


<div class="zhifu_1" style="display:none;height:230px;" id="infos">
  <div class="zhifu_11"style="padding-top:20px;padding-left:20px;height:210px">
    <a onclick="easyDialog.close();" class="close"></a>
    <span class="like-red" id="msg_content" style="font-weight:bold; font-family:Microsoft yahei;font-size:20px">彩票号码：</span>
        <div id="msg" style="font-weight:bold; padding-top:20px;padding-left:20px;font-family:Microsoft yahei">
  	</div>
</div>
</div>

</body>
</html>

<script type="text/javascript">

    function next(){
    	mac=pyObj.get_if_mac();
		var current = document.getElementById("current").value;
		var c = parseInt(current,10);   //returns   10 
		var currentpage = c+1;
		window.location.href = '/sale_info/'+currentpage+'/'+mac;
	}
	  
    function up(){
    	mac=pyObj.get_if_mac();
	    var current = document.getElementById("current").value;
	    var c = parseInt(current,10);   //returns   10 
	    var currentpage = c-1;
	    window.location.href = '/sale_info/'+currentpage+'/'+mac;
    }
	
    function start(){
    	mac=pyObj.get_if_mac();
		var currentpage = 1;
		window.location.href = '/sale_info/'+currentpage+'/'+mac;
		
	}
	  
	function end(){
		mac=pyObj.get_if_mac();
		var currentpage = document.getElementById("allpage").value;
		var c = parseInt(currentpage,10);
		window.location.href = '/sale_info/'+c+'/'+mac;
	}
	
	
	
	function lottery_num(numbers){
		var newstr=numbers.replace(/&/g,"</br></br>");  
		$("#msg").html(newstr)
        easyDialog.open({
            container : 'infos',
            autoClose : 0,
            fixed : true,
        });
    };
    
 

</script>

